package com.nh.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author QAQ
 * @since 2025-01-13
 */
@Data
public class Books implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "bid", type = IdType.AUTO)
    private Integer bid;

    /**
     * 书名
     */
    private String bname;

    /**
     * 作者
     */
    private String author;

    /**
     * 出版日期
     */
    private LocalDate publishDate;

    /**
     * 所属图书馆ID
     */
    private Integer lid;

    /**
     * 逻辑删除标志, 0为未删除, 1为已删除
     */
    private Integer deleted;

    @TableField(exist = false)
    private String lname;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;


}
